package com.java1412.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author java1412
 * @since 2023-07-20 14:05:23
 */
// fallback:指明兜底方案所在的类
@FeignClient(value = "SERVICE-HI", fallback = SchedualServiceHiHystric.class)// 作为feign客户端
public interface SchedualServiceHi {

    @RequestMapping(value = "/hi", method = RequestMethod.GET)
    public String sayHiFromClientOne(
            @RequestParam(value = "name") String name
    );
}
